//
//  SLUserNetMgr.h
//  SoccerLottery
//
//  Created by chuanshuangzhang on 15/12/24.
//  Copyright © 2015年 chuanshuangzhang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SLUserNetMgr : NSObject

/**
 *  注册用户
 *
 *  @param phone    电话号码
 *  @param password 密码
 *  @param userName 用户名
 *  @param code     验证码
 *  @param block    回调
 */
+ (void)registerUser:(NSString *)phone
            password:(NSString *)password
            userName:(NSString *)userName
                code:(NSString *)code
               block:(RequestCallBackBlock)block;

/**
 *  登录
 *
 *  @param phone    电话号码
 *  @param password 密码
 *  @param block    回调
 */
+ (void)login:(NSString *)phone
     password:(NSString *)password
        block:(RequestCallBackBlock)block;

/**
 *  获取用户信息
 *
 *  @param userId 用户ID
 *  @param block  回调
 */
+ (void)getUserInfo:(NSString *)userId
              block:(RequestCallBackBlock)block;

/**
 *  修改用户信息
 *
 *  @param userId   用户ID
 *  @param password 密码
 *  @param userName 用户名
 *  @param block    回调
 */
+ (void)modfiyUser:(NSString *)userId
          password:(NSString *)password
          userName:(NSString *)userName
             block:(RequestCallBackBlock)block;

/**
 *  获取验证码
 *
 *  @param phone 手机号码
 *  @param type  类型 1:注册时   2：忘记密码，取回密码时
 *  @param block 回调
 */
+ (void)getVerfiyCode:(NSString *)phone
                 type:(NSString *)type
                block:(RequestCallBackBlock)block;

/**
 *  获取密码
 *
 *  @param phone 手机号码
 *  @param code  验证码
 *  @param block 回调
 */
+ (void)getPassword:(NSString *)phone
              vcode:(NSString *)code
              block:(RequestCallBackBlock)block;

/**
 *  记录访问
 *
 *  @param block 回调
 */
+ (void)setVisit:(RequestCallBackBlock)block;

/**
 *  修改密码
 *
 *  @param phone    手机号
 *  @param password 密码
 *  @param block    回调
 */
+ (void)setPassword:(NSString *)phone
           password:(NSString *)password
              block:(RequestCallBackBlock)block;
@end
